package com.hboxs.asl.entity;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * Entity - 店长推荐商品
 */
@Entity
@Table(name = "xx_recommend_commodity")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_recommend_commodity_sequence")
public class RecommendCommodity extends BaseEntity {

    private static final long serialVersionUID = -4144648712980123586L;

    /**
     * 被推荐的商品
     */
    private Product product;

    /**
     * 时间范围-开始时间
     */
    private Date startDate;

    /**
     * 时间范围-结束时间
     */
    private Date endDate;

    /**
     * 是否启用
     */
    private Boolean enable;

    @OneToOne
    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
}
